<template>
  <div id="app">
    <el-form ref="form" :model="form" label-width="80px">
      <h1>工程设计变更通知单</h1>
      <el-form-item label="工程名称" class="head" prop="project_name">
        <el-input v-model="form.project_name"></el-input>
      </el-form-item>
      <el-form-item label="项目编号" class="head" prop="project_number">
        <el-input v-model="form.project_number"></el-input>
      </el-form-item>
      <el-form-item label="承包单位" class="head" prop="contractor_unit">
        <el-input v-model="form.contractor_unit"></el-input>
      </el-form-item>
      <el-form-item label="表号" class="head" prop="id">
        <el-input v-model="form.id"></el-input>
      </el-form-item>
      <el-form-item label="设计方" prop="designer">
        <el-input  v-model="form.designer" style="width:300px"></el-input>
      </el-form-item>
      <el-form-item label="变更项目增加内容" prop="change_add">
        <el-input type="textarea" v-model="form.change_add" style="width:680px"></el-input>
      </el-form-item>
      <el-form-item label="变更项目核减内容" prop="change_del">
        <el-input type="textarea" v-model="form.change_del" style="width:680px"></el-input>
      </el-form-item>
      <el-form-item label="通知日期" prop="date">
        <el-date-picker type="date" placeholder="选择日期" v-model="form.date" style="width: 100%;"></el-date-picker> 
      </el-form-item>
    </el-form>
  </div>
</template>
<script>
export default {
  data() {
      return {
        form: {
          project_name: '',
          project_number: '',
          contractor_unit: '',
          id: '',
          designer: '',
          change_add: '',
          change_del: '',
          date: '',
          status:0
        }
      }
    },
    methods: {
      getInfomation(){
        var obj = JSON.parse(sessionStorage.getItem("notification"));
        if(obj.status == 0){
          this.form = JSON.parse(sessionStorage.getItem("notification"));
        }
      },
    },
    mounted(){
      this.getInfomation();
    }
}
</script>

<style  lang="less" scoped>
#app{
  height: auto;
}
.el-form {
  width: 800px;
  height: auto;
  margin: 0 auto;
  border: 1px dashed rgba(0, 50, 100, 0.8);
  position: relative;
  h1{
    text-align: center;
  }
  .head{
    .el-input {
      width: 300px;
    }
    display: inline-block;
  }
}
.el-upload--text{
  width: 419px;
  height: 36px;
}
</style>